<?php

class Application_Form_Addaxes extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	
    	$this->setName("FormulaireAjoutaxe");
    	
    	$identificateur = new Zend_Form_Element_Text('idPILOT_AXES');
    	$identificateur->setLabel('Nom de l\'axe')
    	->setRequired(true)
    	->addFilter('StripTags')
    	->addFilter('StringTrim')
    	->addValidator('NotEmpty')
    	->setAttrib('class','validate[required] text-input');
    	
    	$valider = new Zend_Form_Element_Submit("submit");
    	$valider->setLabel("Ajouter");
    	
    	$this->addElements(array($identificateur,$valider));
    	$this->setDecorators( array( array('ViewScript', array('viewScript' => 'protypeform.phtml'))));
    }
}